package com.leenmvc.core.security.entity.dynamic;

import com.leenmvc.core.annotation.DbInfo;
import com.leenmvc.core.annotation.PrimaryKey;
import com.leenmvc.core.base.BaseEntity;

import java.util.Date;

/**
 * java脚本实体
 *
 */
@DbInfo(value = "sys_script", comment = "脚本")
public class JavaScript extends BaseEntity {

    @PrimaryKey
    private Long id;

    /**
     * 执行脚本里面的哪个方法
     */
    private String method;

    /**
     * java脚本
     */
    private String script;

    /**
     * 脚本类型
     */
    private Integer type;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 创建人
     */
    private Long creator;

//    @FillField(type = FillType.ONE_FIELD_IN, entity = SysUser.class, outField = "name", inField = "creator")
//    @TableField(false)
//    private String creatorName;

    /**
     * 创建时间
     */
    private Date createDate;
    /**
     * 更新者
     */
    private Long updater;

    /**
     * 更新人姓名
     */
//    @FillField(type = FillType.ONE_FIELD_IN, entity = SysUser.class, outField = "name", inField = "updater")
//    @TableField(false)
//    private String updateName;

    /**
     * 更新时间
     */
    private Date updateDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getScript() {
        return script;
    }

    public void setScript(String script) {
        this.script = script;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getUpdater() {
        return updater;
    }

    public void setUpdater(Long updater) {
        this.updater = updater;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }


}
